package pkg;

import java.util.List;

import org.hibernate.Criteria;
import org.hibernate.Session;
import org.hibernate.SessionFactory;
import org.hibernate.cfg.Configuration;

import vo.MenuDetails;

public class MainClass {
	
	@SuppressWarnings({ "deprecation", "unused", "unchecked" })
	public static void main(String[] args) {
		SessionFactory sf = new Configuration().configure().buildSessionFactory();
		Session session = sf.openSession();
		session.beginTransaction();
		Criteria cri = session.createCriteria(MenuDetails.class);
		List<MenuDetails> MenuDetailsList = cri.list();
		session.getTransaction().commit();
		session.close();
	}

}
